package com.yuan.sys.modular.driver.entity;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuan.core.pojo.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年10月21日 21:40
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_driver")
public class SysDriver extends BaseEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long driverIndex;

    /**
     * 驾驶员姓名
     */
    @Excel(name = "驾驶员姓名", width = 20)
    private String employeeName;

    /**
     * 驾驶员工号
     */
    @Excel(name = "驾驶员工号", width = 20)
    private String employeeCode;

    /**
     * 性别(字典 1男 2女 3未知)
     */
    @Excel(name = "性别", replace = {"男_1", "女_2"}, width = 20)
    private Integer sex;

    /**
     * 年龄
     */
    @Excel(name = "年龄", width = 20)
    private Integer age;

    /**
     * 身份证
     */
    @Excel(name = "身份证", width = 50)
    private String idCard;

    /**
     * 手机
     */
    @Excel(name = "手机", width = 30)
    private String phone;


    /**
     * 备用手机
     */
    @Excel(name = "备用手机", width = 30)
    private String backupPhone;

    /**
     * 类型
     */
    @Excel(name = "类型", replace = {"驾驶员_0", "押运员_1", "双证人_2"}, width = 20)
    private Integer type;


    /**
     * 数据状态（0：正常；1：停用；2：删除）
     */
    @Excel(name = "状态", replace = {"正常_0", "停用_1","删除_2"}, width = 20)
    private Integer status;

}
